package com.arrcen.medicen.core.match.model.entity;


import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.annotation.JsonFormat;
import com.fasterxml.jackson.annotation.JsonProperty;
import io.swagger.annotations.ApiModelProperty;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.io.Serializable;
import java.time.LocalDateTime;

/**
 *
 */
@NoArgsConstructor
@AllArgsConstructor
@Data
@TableName("SCHEDULE_TASK")
public class ScheduleTaskEntity implements Serializable {

    /**
     * TASK_ID
     */
    @ApiModelProperty(value = "TASK_ID")
    @TableId(value = "TASK_ID",type = IdType.INPUT)
    public Integer taskId;


    /**
     * 开始时间
     */
    @ApiModelProperty(value = "开始时间")
    @TableField("DATE_START")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm")
    public LocalDateTime dateStart;

    /**
     * 结束时间
     */
    @ApiModelProperty(value = "结束时间")
    @TableField("DATE_END")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm")
    public LocalDateTime dateEnd;

    /**
     * 中心库表名
     */
    @ApiModelProperty(value = "成功导表数")
    @TableField("NUM_SUCC")
    public Integer numSucc;

    /**
     * 失败记录数
     */
    @ApiModelProperty(value = "失败导表数")
    @TableField("NUM_FAIL")
    public Integer numFail;

    /**
     * 错误日志
     */
    @ApiModelProperty(value = "错误日志")
    @TableField("LOG")
    public String log;
}
